package com.pgytesting.secondhandcar.controller.controller;

import com.pgytesting.secondhandcar.model.McpUserOtherInformation;
import com.pgytesting.secondhandcar.service.McpCarDealerInformationService;
import com.pgytesting.secondhandcar.service.McpUserOtherInformationService;
import com.pgytesting.secondhandcar.vo.ResponseMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : frosty0804@gmail.com
 * @version : v1.0
 * @projectName : secondhandcar
 * @className : UpdateUserOtherController
 * @description : TODO(更新销售/用户的个人资料类信息)
 * @date : 2019/8/16 16:42
 */
@Slf4j
@RestController
public class UserInfController {

    @Autowired
    McpUserOtherInformationService informationService;

    @RequestMapping(value = "/updateOtherInf", method = RequestMethod.POST)
    public ResponseMessage updateOtherInformation(@RequestBody McpUserOtherInformation McpUserOther) {
        return informationService.update(McpUserOther);
    }


}
